.content {
  padding: 20px;
  height: calc(100vh - 150px);
  width: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.message-container {
  margin-bottom: 15px;
  display: flex;
  width: 100%;
  flex-shrink: 0;
}

.user-message {
  justify-content: flex-end;
}

.ai-message {
  justify-content: flex-start;
}

.message-bubble {
  white-space: pre-wrap;
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 18px;
  word-wrap: break-word;
  margin: 5px 0;
}

.user-bubble {
  background-color: #1e90ff;
  color: white;
  border-bottom-right-radius: 5px;
  margin-left: auto; /* 确保右对齐 */
}

.ai-bubble {
  background-color: #f0f0f0;
  color: #333;
  border-bottom-left-radius: 5px;
  margin-right: auto; /* 确保左对齐 */
}

.input-box {
  position: fixed;
  width: 100%;
  bottom: 40px;
  margin-bottom: 20px;
  display: flex;
  padding: 0 20px;
  box-sizing: border-box;
}

.input-box input {
  height: 40px;
  border: none;
  background: #f5f5f5;
  padding: 0 10px;
  border-radius: 4px;
  flex: 1;
}